<?php
  /***************************************************************
   * @file: route.php
   * @author: Neo
   * @mail: xq262144@gmail.com
   * @date: 
   * @description:
   * this file is the route configuration of this framework
   ***************************************************************/
   
  if (!defined('SYS_BASEPATH')) {echo "No script access allowed!"; header("HTTP/1.0 404 Not Found"); }
  
  //define default route
  //pattern: begin with a / and like this /class{/method}*{/params}*
  define('WAP_REG', '/opera\smini|opera\smobile|mobile|cldc|midp|phone|android|avantgo|docomo|up\.browser|vodafone|j-phone|blackberry|ppc|xiino|pie|netfront|windows\sce|lge|smartphone/i');
  $routes['default'] = '/dashboard/';
  $routes['rewrite'] = array(
    //define route rewrite here
    //like this 
//    array(
//        'from' => array('class' => 'xmlrpc', 'method' => 'index'),
//        'to' => array('class' => 'dashboard', 'method' => 'index')
//    )
  );